<?php

namespace App\Enums;

class RoomConnectionEnum
{
    const INITIAL_PRICE = 2000; //初始M豆

    const DISCOUNT_PRICE = 1000; //打折M豆


    const RECORD_USER_RECEIVE = 1; //通知用户接受心动连接

    const RECORD_ANCHOR_RECEIVE = 2; //通知主播接受心动连接

    const  RECORD_USER_OVERTIME = 3; //通知用户心动连线超时

    const  RECORD_USER_TIMEOUT = 4; //通知连线时间到了,退出房间

    const INITIAL_ALL_TIME = 120; //心动连线初始时间

    const INITIAL_TIME = 20; //心动连线过期时间

    const BEGIN_TIMEOUT = 1; //心动连线开启超时类型

    const END_TIMEOUT = 2; //心动连线结束类型

    const DELAYED_TIMEOUT = 3; //心动连接即将结束通知类型

    const BEGIN_TIME = 4; //心动连线开始推送

    const DELAYED_TIME = 120; //心动连接即将结束通知时间

    const GAME_HONOR_OF_KINGS = 1; //王者荣耀

    const GAME_GAME_FOR_PEACE = 2; //和平精英

    const GAME_REGION_WEIXIN = 1; //微信区
    const GAME_REGION_QQ     = 2; //qq区


    public static $game = [ //游戏字典
        self::GAME_HONOR_OF_KINGS => [
            'title'  => '王者荣耀',
            'image'  => [
                self::GAME_REGION_WEIXIN => 'https://moka-voice.oss-cn-hangzhou.aliyuncs.com/others/banner_wzry.png',
                self::GAME_REGION_QQ     => 'https://moka-voice.oss-cn-hangzhou.aliyuncs.com/others/banner_wzry.png',
            ],
            'region' => [
                self::GAME_REGION_WEIXIN => '微信区',
                self::GAME_REGION_QQ     => 'qq区',
            ],
        ],
        self::GAME_GAME_FOR_PEACE => [
            'title'  => '和平精英',
            'image'  => [
                self::GAME_REGION_WEIXIN => 'https://moka-voice.oss-cn-hangzhou.aliyuncs.com/others/banner_cj.png',
                self::GAME_REGION_QQ     => 'https://moka-voice.oss-cn-hangzhou.aliyuncs.com/others/banner_cj.png',
            ],
            'region' => [
                self::GAME_REGION_WEIXIN => '微信区',
                self::GAME_REGION_QQ     => 'qq区',
            ],
        ]

    ];

    public static $gameList = [
        [
            'id'     => self::GAME_HONOR_OF_KINGS,
            'title'  => '王者荣耀',
            'region' => [
                [
                    'id'    => self::GAME_REGION_WEIXIN,
                    'title' => '微信区',
                ],
                [
                    'id'    => self::GAME_REGION_QQ,
                    'title' => 'qq区',
                ]
            ],
        ],
        [
            'id'     => self::GAME_GAME_FOR_PEACE,
            'title'  => '和平精英',
            'region' => [
                [
                    'id'    => self::GAME_REGION_WEIXIN,
                    'title' => '微信区',
                ],
                [
                    'id'    => self::GAME_REGION_QQ,
                    'title' => 'qq区',
                ]
            ],
        ],
    ];

}
